package com.wuwei.tms.workbench.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wuwei.tms.pojo.History;
import com.wuwei.tms.vo.HistoryExcel;
import com.wuwei.tms.vo.HistoryPrint;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wuwei
 * @since 2024-01-03
 */
public interface HistoryService extends IService<History> {

    List<HistoryExcel> getList(LocalDateTime borrowDate1,LocalDateTime borrowDate2,
                               LocalDateTime returnDate1,LocalDateTime returnDate2,
                               long borrowById, long barcode,String airplaneId,
                               int currentPage, int pageSize);

    long total(LocalDateTime borrowDate1,LocalDateTime borrowDate2,
               LocalDateTime returnDate1,LocalDateTime returnDate2,
               long borrowById, long barcode,String airplaneId);

    List<HistoryExcel> download(LocalDateTime borrowDate1,LocalDateTime borrowDate2,
                                LocalDateTime returnDate1,LocalDateTime returnDate2,
                                long borrowById, long barcode,String airplaneId);

    List<HistoryPrint> listAll(LocalDateTime borrowDate1,LocalDateTime borrowDate2,
                               LocalDateTime returnDate1,LocalDateTime returnDate2,
                               long borrowById, long barcode,String airplaneId);
}
